package com.guigu;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Commodity;
import com.guigu.pojo.ProductImage;
import com.guigu.pojo.Quote;
import com.guigu.vo.Pojo;
import com.guigu.vo.QuoteVo;

public interface CommodityService extends IService<Commodity> {
    //查询最大id
    int selectMaxId();
    //根据id添加图片
    int insertImage(ProductImage productImage);
    //查询所有商品
    Pojo<Commodity> selectAll(int pageNum, int pageSize);
    //查询所有商品价格
    Pojo<Quote> selectPrice(int id, int pageNum, int pageSize);
}
